package com.surpassun.emall.service;

import java.util.List;

import com.surpassun.emall.exception.NoSuchStoreTypeException;
import com.surpassun.emall.model.StoreType;

public interface StoreTypeService extends AbstractService<StoreType> {

	/**
	 * If the parent store can not be found with the provided parameter "parentId",
	 * the method will throw an NoSuchStoreTypeException
	 * 
	 * @param name
	 * @param parentId
	 * @return
	 * @throws NoSuchStoreTypeException
	 */
	public void addStoreType(String name, long parentId) throws NoSuchStoreTypeException;
	
	public void addStoreType(String name, StoreType parent);

	public void initializeStoreTypes(String[] storeTypes, StoreType parentStoreType);

	public List<StoreType> getRootTypes();
}
